import service from '@/utils/request'

// @Tags InterviewEs
// @Summary 创建interview表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewEs true "创建interview表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /interviewEs/createInterviewEs [post]
export const createInterviewEs = (data) => {
  return service({
    url: '/interviewEs/createInterviewEs',
    method: 'post',
    data
  })
}

// @Tags InterviewEs
// @Summary 删除interview表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewEs true "删除interview表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /interviewEs/deleteInterviewEs [delete]
export const deleteInterviewEs = (data) => {
  return service({
    url: '/interviewEs/deleteInterviewEs',
    method: 'delete',
    data
  })
}

// @Tags InterviewEs
// @Summary 批量删除interview表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除interview表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /interviewEs/deleteInterviewEs [delete]
export const deleteInterviewEsByIds = (data) => {
  return service({
    url: '/interviewEs/deleteInterviewEsByIds',
    method: 'delete',
    data
  })
}

// @Tags InterviewEs
// @Summary 更新interview表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.InterviewEs true "更新interview表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /interviewEs/updateInterviewEs [put]
export const updateInterviewEs = (data) => {
  return service({
    url: '/interviewEs/updateInterviewEs',
    method: 'put',
    data
  })
}

// @Tags InterviewEs
// @Summary 用id查询interview表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.InterviewEs true "用id查询interview表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /interviewEs/findInterviewEs [get]
export const findInterviewEs = (params) => {
  return service({
    url: '/interviewEs/findInterviewEs',
    method: 'get',
    params
  })
}

// @Tags InterviewEs
// @Summary 分页获取interview表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取interview表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /interviewEs/getInterviewEsList [get]
export const getInterviewEsList = (params) => {
  return service({
    url: '/interviewEs/getInterviewEsList',
    method: 'get',
    params
  })
}
